package com.nbjtjc.safe.api.index;

import com.nbjtjc.safe.bean.Result;
import com.nbjtjc.safe.util.SnowflakeIdUtil;
import org.springframework.web.bind.annotation.*;

import java.text.ParseException;

/**
 * @auther guqianbin
 * @date 2018/8/3 9:04
 * 获取唯一id
 **/
@RestController
@RequestMapping("/uuid")
@CrossOrigin("*")
public class UUIDController {

    @GetMapping("/getUuid")
    public Result getUuid()  {
        Result result=new Result();
        result.setData(SnowflakeIdUtil.getUUID());
        return result;
    }
}
